﻿//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1998-2024 Glodon Company Limited.
//
// Licensed under the MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the “Software”),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//////////////////////////////////////////////////////////////////////////////


#include "GnufModelViewConfiguration.h"
#include "GbmpCommandNames.h"
#include "GcmpInternalCommandNames.h"
#include "EnableCompileWarning_The_LAST_IncludeInCpp.h"

using namespace gcmp;
using namespace gfam;

std::wstring GnufModelViewConfiguration::GetLoadFamilyCommandId()
{
    return ID_CMD_DRAW_LOAD_FAMILY;
}

std::wstring GnufModelViewConfiguration::GetLoadSubFamilyCommandId()
{
    return ID_CMD_DRAW_LOAD_SUBFAMILY;
}

std::wstring GnufModelViewConfiguration::GetRenameFamilyCommandId()
{
    return ID_CMD_FAMILY_RENAME;
}

std::wstring GnufModelViewConfiguration::GetEditFamilyCommandId()
{
    return ID_CMD_COMPONENT_EDITOR_OPEN_FILE;
}

std::wstring GnufModelViewConfiguration::GetSaveAsFamilyCommandId()
{
    return ID_CMD_FAMILY_SAVE_AS;
}

std::wstring GnufModelViewConfiguration::GetDeleteFamilyCommandId()
{
    return ID_CMD_FAMILY_REMOVE;
}

std::wstring gfam::GnufModelViewConfiguration::GetRemoveImportedObjectCommandId()
{
    return ID_CMD_DELETE_CAD_ELEMENT;
}

bool GnufModelViewConfiguration::ShowFamilyManagementMenuItem()
{
    return true;
}

std::wstring GnufModelViewConfiguration::GetCreateFamilyInstanceCommandId()
{
    return ID_CMD_CREATE_FAMILY_INSTANCE;
}